function http(option = {}){
	return new Promise((resolved,rejectd)=>{
		uni.request({
			url:option.url,
			data:option.data || "",
			method:option.method || "GET",
			success: (res) => {
				resolved(res.data)
			},
			fail: (e) => {
				rejectd(e)
			}
		})
	})
}
export default http;